package net.findkrypton.entity;

import javafx.scene.canvas.GraphicsContext;
import net.jumpengine.bean.ChangeBase;
import net.jumpengine.bean.LEDBox;

public class BoxTimeBase extends ChangeBase {
	private LEDBox box;

	public BoxTimeBase(long interval,LEDBox box) {
		super(interval);
		this.box=box;
	}

	@Override
	protected void invoke() {
		box.add();
	}
	
	public void reset() {
		box.setVal(0);
	}
	
	public int getVal() {
		return box.getVal();
	}
	
	public void setVal(int val) {
		box.setVal(val);
	}

	@Override
	public void draw(GraphicsContext g) { }

}
